DevJourney

Python/VIT/sem-1/ex-16/2. Multiples of 10/Multiples of 10.py

n = 10
l = []
for i in range(n):
    prod = 10 * (i + 1)
    l.append(prod)

file = open('file.txt', 'w')
file.write(str(l))
file.close()
View on GitHub